package com.zheng.upms.dao.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.zheng.common.base.BaseEntity;
import com.zheng.common.base.PageEntity;

import java.io.Serializable;

/**
 * <p>
 * <p>
 * </p>
 *
 * @author likun
 * @since 2018-05-18
 */
@TableName("upms_user_system")
public class UpmsUserSystem extends PageEntity {

    private static final long serialVersionUID = 1L;
    public static final int ADD_TYPE = 1;
    public static final int DELETE_TYPE = -1;
    @TableId(value = "user_system_id", type = IdType.AUTO)
    private Integer userSystemId;
    @TableField("user_id")
    private Integer userId;
    @TableField("system_id")
    private Integer systemId;

    private Integer type;


    public Integer getUserSystemId() {
        return userSystemId;
    }

    public void setUserSystemId(Integer userSystemId) {
        this.userSystemId = userSystemId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getSystemId() {
        return systemId;
    }

    public void setSystemId(Integer systemId) {
        this.systemId = systemId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    protected Serializable pkVal() {
        return userSystemId;
    }

    @Override
    public String toString() {
        return "UpmsUserSystem{" +
                "userSystemId=" + userSystemId +
                ", userId=" + userId +
                ", systemId=" + systemId +
                "}";
    }
}
